package com.push.spider.utils;

import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.util.regex.PatternSyntaxException;

public class CheckPhoneUtils {
  public static boolean check(String str) throws PatternSyntaxException {
    String regExp = "^(1[3-9]\\d{9}$)";
    Pattern p = Pattern.compile(regExp);
    Matcher m = p.matcher(str);
    return m.matches();
  }
}
